home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Multimedia / Q-Z / VCR+(app+src).sit / Sources / decoder.c < prev    next >
MacBinary  |  1993-03-16  |  1.5 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Mar 16 12:13:24 1993, modified Tue Mar 16 12:13:24 1993, creator Think C, type ASCII, 980 bytes "decoder.c" , at 0x454 348 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 64 65 63 6f 64 65 | 72 2e 63 00 00 00 00 00 |..decode|r.c.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 03 d4 00 | 00 01 5c a7 cb bb 34 a7 |........|..\...4.|
|00000060| cb bb 34 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..4.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d0 5e 00 00 |........|.....^..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 56 43 52 70 6c 75 |#include| "VCRplu|
|00000090| 73 2e 68 22 0d 0d 65 78 | 74 65 72 6e 09 76 63 72 |s.h"..ex|tern.vcr|
|000000a0| 49 6e 66 6f 09 6d 79 56 | 43 52 3b 0d 0d 76 6f 69 |Info.myV|CR;..voi|
|000000b0| 64 20 64 65 63 6f 64 65 | 72 28 76 6f 69 64 29 0d |d decode|r(void).|
|000000c0| 7b 0d 09 6c 6f 6e 67 20 | 09 73 31 5f 6f 75 74 2c |{..long |.s1_out,|
|000000d0| 20 62 6f 74 33 2c 20 74 | 6f 70 35 2c 20 71 75 6f | bot3, t|op5, quo|
|000000e0| 2c 20 72 65 6d 20 3b 0d | 09 6c 6f 6e 67 20 09 73 |, rem ;.|.long .s|
|000000f0| 35 5f 6f 75 74 2c 20 6d | 74 6f 75 74 2c 20 6f 66 |5_out, m|tout, of|
|00000100| 6f 75 74 2c 20 74 76 61 | 6c 2c 20 63 76 61 6c 20 |out, tva|l, cval |
|00000110| 3b 0d 09 6c 6f 6e 67 20 | 09 64 61 79 5f 6f 75 74 |;..long |.day_out|
|00000120| 3b 0d 09 0d 09 53 74 72 | 33 32 09 74 65 6d 70 53 |;....Str|32.tempS|
|00000130| 74 72 3b 0d 0d 0d 09 6f | 66 6f 75 74 20 3d 20 49 |tr;....o|fout = I|
|00000140| 4e 56 41 4c 49 44 20 3b | 0d 09 6d 74 6f 75 74 20 |NVALID ;|..mtout |
|00000150| 3d 20 49 4e 56 41 4c 49 | 44 20 3b 0d 0d 09 73 31 |= INVALI|D ;...s1|
|00000160| 5f 6f 75 74 20 3d 20 66 | 31 28 6d 79 56 43 52 2e |_out = f|1(myVCR.|
|00000170| 63 6f 64 65 29 3b 0d 09 | 62 6f 74 33 20 3d 20 73 |code);..|bot3 = s|
|00000180| 31 5f 6f 75 74 20 25 20 | 31 30 30 30 3b 0d 09 74 |1_out % |1000;..t|
|00000190| 6f 70 35 20 3d 20 73 31 | 5f 6f 75 74 20 2f 20 31 |op5 = s1|_out / 1|
|000001a0| 30 30 30 3b 0d 09 71 75 | 6f 20 3d 20 28 62 6f 74 |000;..qu|o = (bot|
|000001b0| 33 20 2d 20 31 29 20 2f | 20 33 32 20 3b 0d 09 72 |3 - 1) /| 32 ;..r|
|000001c0| 65 6d 20 3d 20 28 62 6f | 74 33 20 2d 20 31 29 20 |em = (bo|t3 - 1) |
|000001d0| 25 20 33 32 20 3b 0d 09 | 64 61 79 5f 6f 75 74 20 |% 32 ;..|day_out |
|000001e0| 3d 20 71 75 6f 20 2b 20 | 31 3b 0d 0d 09 69 66 28 |= quo + |1;...if(|
|000001f0| 6d 79 56 43 52 2e 63 6f | 64 65 20 3e 3d 20 31 30 |myVCR.co|de >= 10|
|00000200| 30 30 29 0d 09 09 6f 66 | 66 73 65 74 28 64 61 79 |00)...of|fset(day|
|00000210| 5f 6f 75 74 2c 20 6d 79 | 56 43 52 2e 79 65 61 72 |_out, my|VCR.year|
|00000220| 2c 20 74 6f 70 35 2c 20 | 28 26 6f 66 6f 75 74 29 |, top5, |(&ofout)|
|00000230| 2c 20 28 26 6d 74 6f 75 | 74 29 29 20 3b 0d 09 65 |, (&mtou|t)) ;..e|
|00000240| 6c 73 65 0d 09 7b 0d 09 | 09 6d 74 6f 75 74 20 3d |lse..{..|.mtout =|
|00000250| 20 30 3b 0d 09 09 6f 66 | 6f 75 74 20 3d 20 30 3b | 0;...of|out = 0;|
|00000260| 0d 09 7d 0d 0d 09 73 35 | 5f 6f 75 74 20 3d 20 28 |..}...s5|_out = (|
|00000270| 72 65 6d 20 2b 20 28 64 | 61 79 5f 6f 75 74 2a 28 |rem + (d|ay_out*(|
|00000280| 6d 79 56 43 52 2e 6d 6f | 6e 74 68 2b 31 29 29 20 |myVCR.mo|nth+1)) |
|00000290| 2b 20 6f 66 6f 75 74 29 | 20 25 20 33 32 20 3b 0d |+ ofout)| % 32 ;.|
|000002a0| 0d 0d 09 62 69 74 5f 73 | 68 75 66 66 6c 65 28 6d |...bit_s|huffle(m|
|000002b0| 74 6f 75 74 2c 20 73 35 | 5f 6f 75 74 2c 20 26 74 |tout, s5|_out, &t|
|000002c0| 76 61 6c 2c 20 26 63 76 | 61 6c 29 3b 0d 09 6d 79 |val, &cv|al);..my|
|000002d0| 56 43 52 2e 63 68 61 6e | 6e 65 6c 20 3d 20 63 76 |VCR.chan|nel = cv|
|000002e0| 61 6c 20 2b 20 31 3b 0d | 09 6c 6f 6f 6b 75 70 28 |al + 1;.|.lookup(|
|000002f0| 74 76 61 6c 2c 20 28 26 | 6d 79 56 43 52 2e 73 74 |tval, (&|myVCR.st|
|00000300| 61 72 74 54 69 6d 65 29 | 2c 20 28 26 6d 79 56 43 |artTime)|, (&myVC|
|00000310| 52 2e 64 75 72 61 74 69 | 6f 6e 29 29 3b 0d 09 0d |R.durati|on));...|
|00000320| 09 6d 79 56 43 52 2e 64 | 61 79 20 3d 20 64 61 79 |.myVCR.d|ay = day|
|00000330| 5f 6f 75 74 3b 0d 09 4e | 75 6d 54 6f 53 74 72 69 |_out;..N|umToStri|
|00000340| 6e 67 28 6d 79 56 43 52 | 2e 64 61 79 2c 20 74 65 |ng(myVCR|.day, te|
|00000350| 6d 70 53 74 72 29 3b 0d | 09 53 65 74 44 54 65 78 |mpStr);.|.SetDTex|
|00000360| 74 28 64 6c 67 44 41 59 | 2c 20 74 65 6d 70 53 74 |t(dlgDAY|, tempSt|
|00000370| 72 29 3b 0d 09 0d 09 4e | 75 6d 54 6f 53 74 72 69 |r);....N|umToStri|
|00000380| 6e 67 28 6d 79 56 43 52 | 2e 63 68 61 6e 6e 65 6c |ng(myVCR|.channel|
|00000390| 2c 20 74 65 6d 70 53 74 | 72 29 3b 0d 09 53 65 74 |, tempSt|r);..Set|
|000003a0| 44 54 65 78 74 28 64 6c | 67 43 48 41 4e 4e 45 4c |DText(dl|gCHANNEL|
|000003b0| 2c 20 74 65 6d 70 53 74 | 72 29 3b 0d 09 0d 09 4e |, tempSt|r);....N|
|000003c0| 75 6d 54 6f 53 74 72 69 | 6e 67 28 6d 79 56 43 52 |umToStri|ng(myVCR|
|000003d0| 2e 73 74 61 72 74 54 69 | 6d 65 2c 20 74 65 6d 70 |.startTi|me, temp|
|000003e0| 53 74 72 29 3b 0d 09 53 | 65 74 44 54 65 78 74 28 |Str);..S|etDText(|
|000003f0| 64 6c 67 53 54 41 52 54 | 54 49 4d 45 2c 20 74 65 |dlgSTART|TIME, te|
|00000400| 6d 70 53 74 72 29 3b 0d | 09 0d 09 4e 75 6d 54 6f |mpStr);.|...NumTo|
|00000410| 53 74 72 69 6e 67 28 6d | 79 56 43 52 2e 64 75 72 |String(m|yVCR.dur|
|00000420| 61 74 69 6f 6e 2c 20 74 | 65 6d 70 53 74 72 29 3b |ation, t|empStr);|
|00000430| 0d 09 53 65 74 44 54 65 | 78 74 28 64 6c 67 44 55 |..SetDTe|xt(dlgDU|
|00000440| 52 41 54 49 4f 4e 2c 20 | 74 65 6d 70 53 74 72 29 |RATION, |tempStr)|
|00000450| 3b 0d 7d 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.}.....|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 46 |........|.......F|
|00000490| 63 6b 62 6f 78 00 73 65 | 74 54 65 78 74 00 69 6e |ckbox.se|tText.in|
|000004a0| 69 74 41 72 72 61 79 73 | 00 70 75 74 44 61 74 65 |itArrays|.putDate|
|000004b0| 09 64 65 63 6f 64 65 72 | 2e 63 02 00 00 00 50 61 |.decoder|.c....Pa|
|000004c0| 72 74 53 49 54 78 00 00 | 00 00 00 00 00 00 00 01 |rtSITx..|........|
|000004d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 a9 7e a4 23 00 00 | 00 00 00 00 01 5c 03 00 |...~.#..|.....\..|
|00000500| 04 14 01 c2 0e 69 00 01 | 00 00 00 3c 07 02 07 00 |.....i..|...<....|
|00000510| fe 00 00 01 08 00 18 02 | 04 18 07 02 fe 00 00 02 |........|........|
|00000520| 08 00 16 02 07 02 fe 00 | 00 01 08 00 06 02 07 02 |........|........|
|00000530| fe 00 00 02 08 00 08 00 | 00 00 0e 6a 0e 6b 01 c2 |........|...j.k..|
|00000540| 0e 6c 00 01 00 00 00 3c | 07 02 07 00 fe 00 00 01 |.l.....<|........|
|00000550| 08 00 18 02 02 18 07 02 | fe 00 00 02 08 00 16 02 |........|........|
|00000560| 07 02 fe 00 00 01 08 00 | 06 02 07 02 fe 00 00 02 |........|........|
|00000570| 08 00 08 00 00 00 0e 6a | 0e 6b 01 c1 0e 6d 00 01 |.......j|.k...m..|
|00000580| 00 00 00 04 00 06 00 04 | 00 00 00 0a 00 09 06 47 |........|.......G|
|00000590| 65 6e 65 76 61 00 00 00 | 01 00 00 00 01 16 00 00 |eneva...|........|
|000005a0| 00 16 00 00 00 46 01 17 | 17 68 08 16 00 00 00 1c |.....F..|.h......|
|000005b0| 00 46 00 01 45 54 41 42 | 00 00 00 12 45 46 4e 54 |.F..ETAB|....EFNT|
|000005c0| 00 00 00 1e 03 ec ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 03 eb ff ff 00 00 00 08 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+